Test results
1 suite
hust.cs.javacourse.search.parse.ScannerFilterAllInOneTest
testNext (hust.cs.javacourse.search.parse.impl.PatternTermTupleFilter@7c469c48, [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ])
testNext (hust.cs.javacourse.search.parse.impl.PatternTermTupleFilter@51e5fc98, [ term: aaa freq: 1 curPos: 1 , term: bbb freq: 1 curPos: 2 , term: ccc freq: 1 curPos: 4 , term: ddd freq: 1 curPos: 6 ])
hust.cs.javacourse.search.parse.StopWordTermTupleFilterTest
testNext (hust.cs.javacourse.search.parse.impl.StopWordTermTupleFilter@3c9d0b9d, [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: u571 freq: 1 curPos: 4 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ])
testNext (hust.cs.javacourse.search.parse.impl.StopWordTermTupleFilter@318ba8c8, [ term: aaa freq: 1 curPos: 0 , term: bbb freq: 1 curPos: 1 , term: ccc freq: 1 curPos: 2 , term: ddd freq: 1 curPos: 3 , term: f17 freq: 1 curPos: 4 , term: 2020 freq: 1 curPos: 5 , term: ab freq: 1 curPos: 6 , term: ababababababababababab freq: 1 curPos: 7 ])
testNext (hust.cs.javacourse.search.parse.impl.StopWordTermTupleFilter@6dbb137d, [ term: aaa freq: 1 curPos: 0 , term: bbb freq: 1 curPos: 1 , term: ccc freq: 1 curPos: 3 , term: ddd freq: 1 curPos: 4 , term: f17 freq: 1 curPos: 6 , term: 2020 freq: 1 curPos: 7 , term: ab freq: 1 curPos: 8 , term: ababababababababababab freq: 1 curPos: 10 ])
hust.cs.javacourse.search.index.TermTupleTest
testTestEquals ([ term: aaa freq: 1 curPos: 20 , term: bbb freq: 1 curPos: 20 ], false)
testTestEquals ([ term: aaa freq: 1 curPos: 17 , term: aaa freq: 1 curPos: 17 ], true)
testTestEquals ([ term: aaa freq: 1 curPos: 17 , term: aaa freq: 1 curPos: 20 ], false)
testTestToString ( term: Search freq: 1 curPos: 100 , [Search, 1, 100])
hust.cs.javacourse.search.index.DocumentBuilderTest
testBuild ({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: i freq: 1 curPos: 8 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} , {docId: 0 docPath: D:\IdeaWorkspace\SeachEngine/text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: i freq: 1 curPos: 8 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} )
testBuild ({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: U571 freq: 1 curPos: 4 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} , {docId: 0 docPath: D:\IdeaWorkspace\SeachEngine/text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: u571 freq: 1 curPos: 4 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} )
testBuild ({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: U571 freq: 1 curPos: 4 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: i freq: 1 curPos: 8 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} , {docId: 0 docPath: D:\IdeaWorkspace\SeachEngine/text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: u571 freq: 1 curPos: 4 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: i freq: 1 curPos: 8 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} )
testBuild ({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: U571 freq: 1 curPos: 4 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} , {docId: 0 docPath: D:\IdeaWorkspace\SeachEngine/text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: u571 freq: 1 curPos: 4 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} )
testBuild ({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} , {docId: 0 docPath: D:\IdeaWorkspace\SeachEngine/text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} )
testTestBuild ({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} , {docId: 0 docPath: D:\IdeaWorkspace\SeachEngine/text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} )
testTestBuild ({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} , {docId: 0 docPath: D:\IdeaWorkspace\SeachEngine/text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} )
hust.cs.javacourse.search.query.IndexSearcherTest
testSearch ([ ----------------------------------------------------------------------- docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text_search_sort/1.txt docScore: 2.0 termPostingMapping: coronavirus ------> {docId: 0 freq: 2 positions: [2, 16]} content: The novel coronavirus death rate According to Government health authority of England Government, most of the coronavirus cases are in England Government , ----------------------------------------------------------------------- docId: 1 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text_search_sort/2.txt docScore: 1.0 termPostingMapping: coronavirus ------> {docId: 1 freq: 1 positions: [8]} content: The release of the new James Bond film coronavirus death continue to spread England Government ], [ ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text_search_sort\1.txt docScore: -2.0 termPostingMapping: coronavirus ------> {docId: 0 freq: 2 positions: [2, 16]} content: The novel coronavirus death rate According to Government health authority of England Government, most of the coronavirus cases are in England Government , ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text_search_sort\2.txt docScore: -1.0 termPostingMapping: coronavirus ------> {docId: 1 freq: 1 positions: [8]} content: The release of the new James Bond film coronavirus death continue to spread England Government ])
testSearch ([ ----------------------------------------------------------------------- docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text_search_sort/1.txt docScore: 3.0 termPostingMapping: government ------> {docId: 0 freq: 3 positions: [7, 12, 21]} content: The novel coronavirus death rate According to Government health authority of England Government, most of the coronavirus cases are in England Government , ----------------------------------------------------------------------- docId: 2 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text_search_sort/3.txt docScore: 2.0 termPostingMapping: government ------> {docId: 2 freq: 2 positions: [2, 14]} content: The England Government want to establish the country as a visitor destination for Chinese Government people as part of new strategy to boost trade rate , ----------------------------------------------------------------------- docId: 1 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text_search_sort/2.txt docScore: 1.0 termPostingMapping: government ------> {docId: 1 freq: 1 positions: [14]} content: The release of the new James Bond film coronavirus death continue to spread England Government ], [ ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text_search_sort\1.txt docScore: -3.0 termPostingMapping: government ------> {docId: 0 freq: 3 positions: [7, 12, 21]} content: The novel coronavirus death rate According to Government health authority of England Government, most of the coronavirus cases are in England Government , ----------------------------------------------------------------------- docId: 2 docPath: D:\IdeaWorkspace\SeachEngine\text_search_sort\3.txt docScore: -2.0 termPostingMapping: government ------> {docId: 2 freq: 2 positions: [2, 14]} content: The England Government want to establish the country as a visitor destination for Chinese Government people as part of new strategy to boost trade rate , ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text_search_sort\2.txt docScore: -1.0 termPostingMapping: government ------> {docId: 1 freq: 1 positions: [14]} content: The release of the new James Bond film coronavirus death continue to spread England Government ])
testTestSearch ([ ----------------------------------------------------------------------- docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text_search_sort/1.txt docScore: 2.0 termPostingMapping: death ------> {docId: 0 freq: 1 positions: [3]} rate ------> {docId: 0 freq: 1 positions: [4]} content: The novel coronavirus death rate According to Government health authority of England Government, most of the coronavirus cases are in England Government ], [ ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text_search_sort\1.txt docScore: -2.0 termPostingMapping: death ------> {docId: 0 freq: 1 positions: [3]} rate ------> {docId: 0 freq: 1 positions: [4]} content: The novel coronavirus death rate According to Government health authority of England Government, most of the coronavirus cases are in England Government ])
hust.cs.javacourse.search.index.TermTest
testCompareTo ([abc, abc], 0)
testCompareTo ([def, dab], 4)
testGetContent (We have a dream., We have a dream.)
testReadObject (search engine, /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//ser/Term.dat)
testSetContent (We have no dream., We have no dream.)
testTestEquals ([search engine, search engine ], false)
testTestEquals ([search engine, search engine], true)
testTestToString (We have a dream., We have a dream.)
testWriteObject (search engine, /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//ser/Term.dat)
hust.cs.javacourse.search.query.HitTest
testCompareTo ([ ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: -3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism , ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text\2.txt docScore: -1.0 termPostingMapping: activity ------> {docId: 1 freq: 1 positions: [0]} content: activity destination emergency 26% U571 because hence capital i frozen benefits google hahahahahahahahahahahahah ha frozen google ], -2)
testGetContent ( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text\2.txt docScore: -1.0 termPostingMapping: activity ------> {docId: 1 freq: 1 positions: [0]} content: activity destination emergency 26% U571 because hence capital i frozen benefits google hahahahahahahahahahahahah ha frozen google , activity destination emergency 26% U571 because hence capital i frozen benefits google hahahahahahahahahahahahah ha frozen google)
testGetContent ( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: -3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism , activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism)
testGetDocId ( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text\2.txt docScore: -1.0 termPostingMapping: activity ------> {docId: 1 freq: 1 positions: [0]} content: activity destination emergency 26% U571 because hence capital i frozen benefits google hahahahahahahahahahahahah ha frozen google , 1)
testGetDocId ( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: -3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism , 0)
testGetDocPath ( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: -3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism , D:\IdeaWorkspace\SeachEngine\text\1.txt)
testGetDocPath ( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text\2.txt docScore: -1.0 termPostingMapping: activity ------> {docId: 1 freq: 1 positions: [0]} content: activity destination emergency 26% U571 because hence capital i frozen benefits google hahahahahahahahahahahahah ha frozen google , D:\IdeaWorkspace\SeachEngine\text\2.txt)
testGetScore ( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text\2.txt docScore: -1.0 termPostingMapping: activity ------> {docId: 1 freq: 1 positions: [0]} content: activity destination emergency 26% U571 because hence capital i frozen benefits google hahahahahahahahahahahahah ha frozen google , -1.0)
testGetScore ( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: -3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism , -3.0)
testGetTermPostingMapping ( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text\2.txt docScore: -1.0 termPostingMapping: activity ------> {docId: 1 freq: 1 positions: [0]} content: activity destination emergency 26% U571 because hence capital i frozen benefits google hahahahahahahahahahahahah ha frozen google , 1)
testGetTermPostingMapping ( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: -3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism , 1)
testSetContent ( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: -3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: new content1 , new content1)
testSetContent ( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text\2.txt docScore: -1.0 termPostingMapping: activity ------> {docId: 1 freq: 1 positions: [0]} content: new content2 , new content2)
testSetScore ( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaWorkspace\SeachEngine\text\2.txt docScore: 1.0 termPostingMapping: activity ------> {docId: 1 freq: 1 positions: [0]} content: activity destination emergency 26% U571 because hence capital i frozen benefits google hahahahahahahahahahahahah ha frozen google , 1.0)
testSetScore ( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: 3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism , 3.0)
testTestToString ( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaWorkspace\SeachEngine\text\1.txt docScore: -3.0 termPostingMapping: activity ------> {docId: 0 freq: 3 positions: [0, 1, 6]} content: activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism , [D:\IdeaWorkspace\SeachEngine\text\1.txt, activity activity benefits capital destination fizzy activity benefits capital destination emergency 2005 12-31 F16 the from Pseudopseudohypoparathyroidism, activity, {docId: 0 freq: 3 positions: [0, 1, 6]}])
hust.cs.javacourse.search.index.PostingTest
testCompareTo ([{docId: 2 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [10, 100, 320, 400]}], 1)
testGetDocId ({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, 1)
testGetFreq ({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, 4)
testGetPositions ({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, [10, 100, 320, 400])
testReadObject ({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//ser/Posting.dat)
testSetDocId ({docId: 20 freq: 0 positions: []}, 20)
testSetFreq ({docId: 0 freq: 8 positions: []}, 8)
testSetPositions ({docId: 0 freq: 0 positions: [100, 320, 400]}, [100, 320, 400])
testSort ({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, [10, 100, 320, 400])
testTestEquals ([{docId: 1 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [100, 320, 400]}], false)
testTestEquals ([{docId: 1 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [10, 100, 320, 400]}], true)
testTestEquals ([{docId: 1 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 5 positions: [10, 100, 320, 400]}], false)
testTestEquals ([{docId: 2 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [10, 100, 320, 400]}], false)
testTestEquals ([{docId: 1 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [10, 100, 320, 400]}], true)
testTestToString ({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, [1, 4, 10, 100, 320, 400])
testWriteObject ({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//ser/Posting.dat)
hust.cs.javacourse.search.parse.LengthTermTupleFilterTest
testNext (hust.cs.javacourse.search.parse.impl.LengthTermTupleFilter@71b1176b, [ term: aaa freq: 1 curPos: 0 , term: bbb freq: 1 curPos: 1 , term: ccc freq: 1 curPos: 3 , term: ddd freq: 1 curPos: 4 , term: f17 freq: 1 curPos: 5 , term: 2020 freq: 1 curPos: 6 ])
testNext (hust.cs.javacourse.search.parse.impl.LengthTermTupleFilter@6193932a, [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: u571 freq: 1 curPos: 4 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ])
hust.cs.javacourse.search.index.DocumentTest
testAddTuple ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 ]} , term: aaa freq: 1 curPos: 17 )
testContains ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]} , term: bbb freq: 1 curPos: 30 )
testContains ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]} , term: aaa freq: 1 curPos: 17 )
testGetDocId ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 ]} , 1)
testGetDocPath ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 ]} , C:/1.txt)
testGetTuple ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]} , [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ])
testGetTupleSize ({docId: 1 docPath: C:/1.txt tuples: []} , 0)
testGetTupleSize ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]} , 2)
testGetTuples ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]} , [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ])
testSetDocId ({docId: 2 docPath: null tuples: []} , 2)
testSetDocPath ({docId: 0 docPath: C:/2.txt tuples: []} , C:/2.txt)
testTestToString ({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]} , [1, C:/1.txt, term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ])
hust.cs.javacourse.search.parse.PatternTermTupleFilterTest
testNext (hust.cs.javacourse.search.parse.impl.PatternTermTupleFilter@163e4e87, [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: i freq: 1 curPos: 8 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ])
testNext (hust.cs.javacourse.search.parse.impl.PatternTermTupleFilter@2bbf180e, [ term: aaa freq: 1 curPos: 0 , term: bbb freq: 1 curPos: 2 , term: ab freq: 1 curPos: 3 , term: ccc freq: 1 curPos: 4 , term: ddd freq: 1 curPos: 5 , term: ababababababababababab freq: 1 curPos: 7 ])
hust.cs.javacourse.search.index.IndexTest
testAddDocument ([----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text_1\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine/text/2.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} , ----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text_1_2\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text_1_2\2.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} ], {docId: 1 docPath: D:\IdeaWorkspace\SeachEngine/text/2.txt tuples: [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: capital freq: 1 curPos: 7 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ]} )
testGetDictionary (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , [activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution])
testGetDocName (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , [1.txt, 2.txt, 3.txt])
testLoad (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//index/index_1_2_3_txt.dat)
testOptimize (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , ----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} )
testReadObject (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//index/index_1_2_3_txt.dat)
testSave (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//index/index_1_2_3_txt.dat)
testSearch (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} )
testTestToString (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , [activity, {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} , benefits, {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} , capital, {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} , destination, {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} , emergency, {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} , fizzy, {docId: 0 freq: 1 positions: [5]} , frozen, {docId: 1 freq: 2 positions: [9, 14]} , google, {docId: 1 freq: 2 positions: [11, 15]} , marketplace, {docId: 2 freq: 1 positions: [0]} , medical, {docId: 2 freq: 1 positions: [1]} , notification, {docId: 2 freq: 1 positions: [3]} , peninsula, {docId: 2 freq: 1 positions: [5]} , pollution, {docId: 2 freq: 1 positions: [7]} ])
testWriteObject (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//index/index_1_2_3_txt.dat)
hust.cs.javacourse.search.index.PostingListTest
testAdd ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testClear ( , null)
testContains ({docId: 1 freq: 4 positions: [1, 2, 3, 4]} , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testGet ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testIndexOf ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testIsEmpty ( , true)
testIsEmpty ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , false)
testReadObject ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//ser/PostingList.dat)
testRemove ( , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testSize ( , 0)
testSize ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , 2)
testSort ({docId: 2 freq: 4 positions: [5, 7, 8, 9]}->{docId: 3 freq: 2 positions: [10, 11]}->{docId: 4 freq: 4 positions: [1, 2, 3, 4]} , [2, 3, 4])
testTestAdd ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testTestIndexOf ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testTestRemove ( , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testTestToString ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}])
testWriteObject ({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//ser/PostingList.dat)
hust.cs.javacourse.search.index.IndexBuilderTest
testBuildIndex (----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text/1.txt 1 -----> /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text/2.txt 2 -----> /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/text/3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} , ----------------------------------------------------------------------- dictionary: activity benefits capital destination emergency fizzy frozen google marketplace medical notification peninsula pollution ----------------------------------------------------------------------- docId----->docPath Mapping 0 -----> D:\IdeaWorkspace\SeachEngine\text\1.txt 1 -----> D:\IdeaWorkspace\SeachEngine\text\2.txt 2 -----> D:\IdeaWorkspace\SeachEngine\text\3.txt ----------------------------------------------------------------------- term---->postingList Mapping activity -----> {docId: 0 freq: 3 positions: [0, 1, 6]}->{docId: 1 freq: 1 positions: [0]} benefits -----> {docId: 0 freq: 2 positions: [2, 7]}->{docId: 1 freq: 1 positions: [10]} capital -----> {docId: 0 freq: 2 positions: [3, 8]}->{docId: 1 freq: 1 positions: [7]} destination -----> {docId: 0 freq: 2 positions: [4, 9]}->{docId: 1 freq: 1 positions: [1]} emergency -----> {docId: 0 freq: 1 positions: [10]}->{docId: 1 freq: 1 positions: [2]} fizzy -----> {docId: 0 freq: 1 positions: [5]} frozen -----> {docId: 1 freq: 2 positions: [9, 14]} google -----> {docId: 1 freq: 2 positions: [11, 15]} marketplace -----> {docId: 2 freq: 1 positions: [0]} medical -----> {docId: 2 freq: 1 positions: [1]} notification -----> {docId: 2 freq: 1 positions: [3]} peninsula -----> {docId: 2 freq: 1 positions: [5]} pollution -----> {docId: 2 freq: 1 positions: [7]} )
hust.cs.javacourse.search.parse.TermTupleScannerTest
testNext (hust.cs.javacourse.search.parse.impl.TermTupleScanner@33afa13b, [ term: aaa freq: 1 curPos: 0 , term: bbb freq: 1 curPos: 1 , term: ccc freq: 1 curPos: 2 , term: ddd freq: 1 curPos: 3 , term: is freq: 1 curPos: 4 , term: f17 freq: 1 curPos: 5 , term: 2020 freq: 1 curPos: 6 , term: ab freq: 1 curPos: 7 , term: ababababababababababab freq: 1 curPos: 8 ])
testNext (hust.cs.javacourse.search.parse.impl.TermTupleScanner@7a4ccb53, [ term: activity freq: 1 curPos: 0 , term: destination freq: 1 curPos: 1 , term: emergency freq: 1 curPos: 2 , term: 26% freq: 1 curPos: 3 , term: u571 freq: 1 curPos: 4 , term: because freq: 1 curPos: 5 , term: hence freq: 1 curPos: 6 , term: capital freq: 1 curPos: 7 , term: i freq: 1 curPos: 8 , term: frozen freq: 1 curPos: 9 , term: benefits freq: 1 curPos: 10 , term: google freq: 1 curPos: 11 , term: hahahahahahahahahahahahah freq: 1 curPos: 12 , term: ha freq: 1 curPos: 13 , term: frozen freq: 1 curPos: 14 , term: google freq: 1 curPos: 15 ])
/Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/testng.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Test Suite" guice-stage="DEVELOPMENT">
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/TermTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.index.TermTest">
        <methods>
          <include name="testTestEquals"/>
          <include name="testTestToString"/>
          <include name="testGetContent"/>
          <include name="testSetContent"/>
          <include name="testCompareTo"/>
          <include name="testWriteObject"/>
          <include name="testReadObject"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.index.TermTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/TermTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/TermTupleTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.index.TermTupleTest">
        <methods>
          <include name="testTestEquals"/>
          <include name="testTestToString"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.index.TermTupleTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/TermTupleTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/PostingTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.index.PostingTest">
        <methods>
          <include name="testTestEquals"/>
          <include name="testTestToString"/>
          <include name="testGetDocId"/>
          <include name="testSetDocId"/>
          <include name="testGetFreq"/>
          <include name="testSetFreq"/>
          <include name="testGetPositions"/>
          <include name="testSetPositions"/>
          <include name="testCompareTo"/>
          <include name="testSort"/>
          <include name="testWriteObject"/>
          <include name="testReadObject"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.index.PostingTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/PostingTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/PostingListTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.index.PostingListTest">
        <methods>
          <include name="testAdd"/>
          <include name="testTestToString"/>
          <include name="testTestAdd"/>
          <include name="testGet"/>
          <include name="testIndexOf"/>
          <include name="testTestIndexOf"/>
          <include name="testContains"/>
          <include name="testRemove"/>
          <include name="testTestRemove"/>
          <include name="testSize"/>
          <include name="testClear"/>
          <include name="testIsEmpty"/>
          <include name="testSort"/>
          <include name="testWriteObject"/>
          <include name="testReadObject"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.index.PostingListTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/PostingListTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/DocumentTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.index.DocumentTest">
        <methods>
          <include name="testGetDocId"/>
          <include name="testSetDocId"/>
          <include name="testGetDocPath"/>
          <include name="testSetDocPath"/>
          <include name="testGetTuples"/>
          <include name="testAddTuple"/>
          <include name="testContains"/>
          <include name="testGetTuple"/>
          <include name="testGetTupleSize"/>
          <include name="testTestToString"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.index.DocumentTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/DocumentTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/TermTupleScannerTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.parse.TermTupleScannerTest">
        <methods>
          <include name="testNext"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.parse.TermTupleScannerTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/TermTupleScannerTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/StopWordTermTupleFilterTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.parse.StopWordTermTupleFilterTest">
        <methods>
          <include name="testNext"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.parse.StopWordTermTupleFilterTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/StopWordTermTupleFilterTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/PatternTermTupleFilterTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.parse.PatternTermTupleFilterTest">
        <methods>
          <include name="testNext"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.parse.PatternTermTupleFilterTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/PatternTermTupleFilterTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/LengthTermTupleFilterTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.parse.LengthTermTupleFilterTest">
        <methods>
          <include name="testNext"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.parse.LengthTermTupleFilterTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/LengthTermTupleFilterTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/ScannerFilterAllInOneTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.parse.ScannerFilterAllInOneTest">
        <methods>
          <include name="testNext"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.parse.ScannerFilterAllInOneTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/ScannerFilterAllInOneTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/DocumentBuilderTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.index.DocumentBuilderTest">
        <methods>
          <include name="testBuild"/>
          <include name="testTestBuild"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.index.DocumentBuilderTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/DocumentBuilderTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/IndexTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.index.IndexTest">
        <methods>
          <include name="testTestToString"/>
          <include name="testAddDocument"/>
          <include name="testLoad"/>
          <include name="testSave"/>
          <include name="testSearch"/>
          <include name="testGetDictionary"/>
          <include name="testWriteObject"/>
          <include name="testReadObject"/>
          <include name="testOptimize"/>
          <include name="testGetDocName"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.index.IndexTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/IndexTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/IndexBuilderTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.index.IndexBuilderTest">
        <methods>
          <include name="testBuildIndex"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.index.IndexBuilderTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/IndexBuilderTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/query/HitTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.query.HitTest">
        <methods>
          <include name="testGetDocId"/>
          <include name="testGetDocPath"/>
          <include name="testGetContent"/>
          <include name="testSetContent"/>
          <include name="testGetScore"/>
          <include name="testSetScore"/>
          <include name="testGetTermPostingMapping"/>
          <include name="testTestToString"/>
          <include name="testCompareTo"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.query.HitTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/query/HitTest.java -->
  <test thread-count="5" name="D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/query/IndexSearcherTest.java" verbose="2">
    <classes>
      <class name="hust.cs.javacourse.search.query.IndexSearcherTest">
        <methods>
          <include name="testSearch"/>
          <include name="testTestSearch"/>
        </methods>
      </class> <!-- hust.cs.javacourse.search.query.IndexSearcherTest -->
    </classes>
  </test> <!-- D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/query/IndexSearcherTest.java -->
</suite> <!-- All Test Suite -->
            
Tests for All Test Suite
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/TermTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/TermTupleTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/PostingTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/PostingListTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/DocumentTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/TermTupleScannerTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/StopWordTermTupleFilterTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/PatternTermTupleFilterTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/LengthTermTupleFilterTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/parse/ScannerFilterAllInOneTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/DocumentBuilderTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/IndexTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/IndexBuilderTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/query/HitTest.java (1 class)
  • D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/query/IndexSearcherTest.java (1 class)
Groups for All Test Suite
Times for All Test Suite
Total running time: 71 ms
Reporter output for All Test Suite
0 ignored methods
Methods in chronological order
hust.cs.javacourse.search.index.PostingListTest
beforeSuite 0 ms
hust.cs.javacourse.search.index.TermTest
testTestEquals([search engine, search engine], true) 21 ms
testTestEquals([search engine, search engine ], false) 22 ms
testTestToString(We have a dream., We have a dream.) 22 ms
testGetContent(We have a dream., We have a dream.) 23 ms
testSetContent(We have no dream., We have no dream.) 23 ms
testCompareTo([abc, abc], 0) 23 ms
testCompareTo([def, dab], 4) 23 ms
testWriteObject(search engine, /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//ser/Term.dat) 26 ms
testReadObject(search engine, /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//ser/Term.dat) 36 ms
hust.cs.javacourse.search.index.TermTupleTest
testTestEquals([ term: aaa freq: 1 curPos: 17 , term: aaa freq: 1 curPos: 17 ], true) 268 ms
testTestEquals([ term: aaa freq: 1 curPos: 17 , term: aaa freq: 1 curPos: 20 ], false) 268 ms
testTestEquals([ term: aaa freq: 1 curPos: 20 , term: bbb freq: 1 curPos: 20 ], false) 268 ms
testTestToString( term: Search freq: 1 curPos: 100 , [Search, 1, 100]) 268 ms
hust.cs.javacourse.search.index.PostingTest
testTestEquals([{docId: 1 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [10, 100, 320...) 275 ms
testTestEquals([{docId: 2 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [10, 100, 320...) 276 ms
testTestEquals([{docId: 1 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 5 positions: [10, 100, 320...) 276 ms
testTestEquals([{docId: 1 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [100, 320, 40...) 276 ms
testTestEquals([{docId: 1 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [10, 100, 320...) 276 ms
testTestToString({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, [1, 4, 10, 100, 320, 400]) 276 ms
testGetDocId({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, 1) 280 ms
testSetDocId({docId: 20 freq: 0 positions: []}, 20) 280 ms
testGetFreq({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, 4) 280 ms
testSetFreq({docId: 0 freq: 8 positions: []}, 8) 280 ms
testGetPositions({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, [10, 100, 320, 400]) 281 ms
testSetPositions({docId: 0 freq: 0 positions: [100, 320, 400]}, [100, 320, 400]) 281 ms
testCompareTo([{docId: 2 freq: 4 positions: [10, 100, 320, 400]}, {docId: 1 freq: 4 positions: [10, 100, 320...) 282 ms
testSort({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, [10, 100, 320, 400]) 282 ms
testWriteObject({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, /Users/xupengzhu/Desktop/exp./Experiment1Tes4_...) 282 ms
testReadObject({docId: 1 freq: 4 positions: [10, 100, 320, 400]}, /Users/xupengzhu/Desktop/exp./Experiment1Tes4_...) 285 ms
hust.cs.javacourse.search.index.PostingListTest
testAdd({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 ...) 289 ms
testTestToString({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 ...) 290 ms
testTestAdd({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 ...) 290 ms
testGet({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 ...) 290 ms
testIndexOf({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 ...) 291 ms
testTestIndexOf({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , [{docId: 1 ...) 291 ms
testContains({docId: 1 freq: 4 positions: [1, 2, 3, 4]} , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {doc...) 291 ms
testRemove( , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}]) 291 ms
testTestRemove( , [{docId: 1 freq: 4 positions: [1, 2, 3, 4]}, {docId: 2 freq: 2 positions: [5, 6]}]) 292 ms
testSize({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , 2) 292 ms
testSize( , 0) 292 ms
testClear( , null) 292 ms
testIsEmpty({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , false) 292 ms
testIsEmpty( , true) 292 ms
testSort({docId: 2 freq: 4 positions: [5, 7, 8, 9]}->{docId: 3 freq: 2 positions: [10, 11]}->{docId: 4 ...) 293 ms
testWriteObject({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , /Users/xupe...) 293 ms
testReadObject({docId: 1 freq: 4 positions: [1, 2, 3, 4]}->{docId: 2 freq: 2 positions: [5, 6]} , /Users/xupe...) 296 ms
hust.cs.javacourse.search.index.DocumentTest
testGetDocId({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 ]} , 1) 303 ms
testSetDocId({docId: 2 docPath: null tuples: []} , 2) 303 ms
testGetDocPath({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 ]} , C:/1.txt) 304 ms
testSetDocPath({docId: 0 docPath: C:/2.txt tuples: []} , C:/2.txt) 304 ms
testGetTuples({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]...) 304 ms
testAddTuple({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 ]} , term: aaa freq: 1 curPos: 1...) 304 ms
testContains({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]...) 305 ms
testContains({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]...) 305 ms
testGetTuple({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]...) 305 ms
testGetTupleSize({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]...) 305 ms
testGetTupleSize({docId: 1 docPath: C:/1.txt tuples: []} , 0) 306 ms
testTestToString({docId: 1 docPath: C:/1.txt tuples: [ term: aaa freq: 1 curPos: 17 , term: bbb freq: 1 curPos: 30 ]...) 307 ms
hust.cs.javacourse.search.parse.TermTupleScannerTest
testNext(hust.cs.javacourse.search.parse.impl.TermTupleScanner@33afa13b, [ term: aaa freq: 1 curPos: 0 , ter...) 320 ms
testNext(hust.cs.javacourse.search.parse.impl.TermTupleScanner@7a4ccb53, [ term: activity freq: 1 curPos: 0 ,...) 320 ms
hust.cs.javacourse.search.parse.StopWordTermTupleFilterTest
testNext(hust.cs.javacourse.search.parse.impl.StopWordTermTupleFilter@318ba8c8, [ term: aaa freq: 1 curPos: 0...) 327 ms
testNext(hust.cs.javacourse.search.parse.impl.StopWordTermTupleFilter@6dbb137d, [ term: aaa freq: 1 curPos: 0...) 328 ms
testNext(hust.cs.javacourse.search.parse.impl.StopWordTermTupleFilter@3c9d0b9d, [ term: activity freq: 1 curP...) 328 ms
hust.cs.javacourse.search.parse.PatternTermTupleFilterTest
testNext(hust.cs.javacourse.search.parse.impl.PatternTermTupleFilter@2bbf180e, [ term: aaa freq: 1 curPos: 0 ...) 333 ms
testNext(hust.cs.javacourse.search.parse.impl.PatternTermTupleFilter@163e4e87, [ term: activity freq: 1 curPo...) 333 ms
hust.cs.javacourse.search.parse.LengthTermTupleFilterTest
testNext(hust.cs.javacourse.search.parse.impl.LengthTermTupleFilter@71b1176b, [ term: aaa freq: 1 curPos: 0 ,...) 337 ms
testNext(hust.cs.javacourse.search.parse.impl.LengthTermTupleFilter@6193932a, [ term: activity freq: 1 curPos...) 337 ms
hust.cs.javacourse.search.parse.ScannerFilterAllInOneTest
testNext(hust.cs.javacourse.search.parse.impl.PatternTermTupleFilter@51e5fc98, [ term: aaa freq: 1 curPos: 1 ...) 340 ms
testNext(hust.cs.javacourse.search.parse.impl.PatternTermTupleFilter@7c469c48, [ term: activity freq: 1 curPo...) 341 ms
hust.cs.javacourse.search.index.DocumentBuilderTest
testBuild({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt t...) 639 ms
testBuild({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt t...) 640 ms
testBuild({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt t...) 640 ms
testBuild({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt t...) 640 ms
testBuild({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt t...) 640 ms
testTestBuild({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt t...) 685 ms
testTestBuild({docId: 0 docPath: /Users/xupengzhu/Desktop/exp./Experiment1Tes4_4Linux/test/config/..//text/2.txt t...) 685 ms
hust.cs.javacourse.search.index.IndexTest
testTestToString(----------------------------------------------------------------------- dictionary: activity benefit...) 726 ms
testAddDocument([----------------------------------------------------------------------- dictionary: activity benefi...) 746 ms
testLoad(----------------------------------------------------------------------- dictionary: activity benefit...) 758 ms
testSave(----------------------------------------------------------------------- dictionary: activity benefit...) 782 ms
testSearch(----------------------------------------------------------------------- dictionary: activity benefit...) 802 ms
testGetDictionary(----------------------------------------------------------------------- dictionary: activity benefit...) 811 ms
testWriteObject(----------------------------------------------------------------------- dictionary: activity benefit...) 822 ms
testReadObject(----------------------------------------------------------------------- dictionary: activity benefit...) 837 ms
testOptimize(----------------------------------------------------------------------- dictionary: activity benefit...) 858 ms
testGetDocName(----------------------------------------------------------------------- dictionary: activity benefit...) 867 ms
hust.cs.javacourse.search.index.IndexBuilderTest
testBuildIndex(----------------------------------------------------------------------- dictionary: activity benefit...) 889 ms
hust.cs.javacourse.search.query.HitTest
testGetDocId( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaW...) 898 ms
testGetDocId( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaW...) 898 ms
testGetDocPath( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaW...) 900 ms
testGetDocPath( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaW...) 900 ms
testGetContent( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaW...) 901 ms
testGetContent( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaW...) 901 ms
testSetContent( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaW...) 902 ms
testSetContent( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaW...) 902 ms
testGetScore( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaW...) 903 ms
testGetScore( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaW...) 904 ms
testSetScore( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaW...) 905 ms
testSetScore( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaW...) 905 ms
testGetTermPostingMapping( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaW...) 907 ms
testGetTermPostingMapping( ----------------------------------------------------------------------- docId: 1 docPath: D:\IdeaW...) 907 ms
testTestToString( ----------------------------------------------------------------------- docId: 0 docPath: D:\IdeaW...) 909 ms
testCompareTo([ ----------------------------------------------------------------------- docId: 0 docPath: D:\Idea...) 915 ms
hust.cs.javacourse.search.query.IndexSearcherTest
testSearch([ ----------------------------------------------------------------------- docId: 0 docPath: /Users/...) 931 ms
testSearch([ ----------------------------------------------------------------------- docId: 0 docPath: /Users/...) 931 ms
testTestSearch([ ----------------------------------------------------------------------- docId: 0 docPath: /Users/...) 942 ms